package com.stone.sys.service;

/**
 * <pre>
 *  绩效考核细则Service
 * </pre>
 */

import java.util.HashMap;
import java.util.List;
import com.stone.sys.pojo.TJxkhxz;

import frm.ssh.exception.AppException;
import frm.ssh.service.BaseService;

public class JxkhxzService extends BaseService {

	/**
	 * 	新建、修改机构
	 */
	public void save(TJxkhxz entity) throws AppException {
		
		if (entity.getId() == null || entity.getId() == 0) {
		
			super.save(entity);
		} else {
			
			TJxkhxz u = (TJxkhxz) super.findById(entity.getId(), TJxkhxz.class.getName());
			u.setJjfz(entity.getJjfz());
			u.setKpnr(entity.getKpnr());
			u.setKpxm(entity.getKpxm());
			u.setMkname(entity.getMkname());
	
			// 将页面提交的实体复制至u
			//MainUtils.copy(entity, u);
			super.update(u);
		}
	}

}
